home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
net
/
drexxmail.lha
/
frills
/
rFinger
< prev
next >
Wrap
Text File
|
1994-09-30
|
1KB
|
44 lines
/* rFinger v1.01 - by Rick Taylor, 8-12-94 */
options results
call addlib("rexxreqtools.library",0,-30,0)
lf = '0a'x
cr = '0d'x
fonttag=""
whofin = ""
address command
/* Who are we gonna finger? */
msg = "Who do you want to get finger information for? (user@host)?"
whofin = rtgetstring("", msg,"rFinger v1.01 - By Rick Taylor", , fonttag)
if whofin = "" then exit
msg = "***Finger info for "||whofin||"***"||lf
/* Launch the finger command */
'dnet:finger >t:finger_out' whofin
/* Process finger input to fit in a requestor */
call open .fin,'t:finger_out',read
beginline = readln(.fin)
currpos = seek(.fin,0,'C')
endfile = seek(.fin,0,'E')
startpos = seek(.fin,currpos,'B')
lcount = 0
do while (currpos < endfile)&(lcount < 13)
restofmsg = readln(.fin)
msg = msg||strip(left(restofmsg,80))||lf
lcount = lcount +1
currpos = seek(.fin,0,'C')
end
call close .fin
'delete t:finger_out QUIET'
msg = msg||"***End of finger info for "||whofin||"***"
call rtezrequest msg,"_Ok","rFinger Information",fonttag
/* We're outta here */
exit